<template>
     <el-drawer v-model="table" title="添加子菜单" direction="rtl"
     size="50%" v-on:close="Load()">
     <el-form :model="form" label-width="120px">
      <el-form-item label="菜单名字">
        <el-input v-model="name" />
      </el-form-item>
          <el-form-item label="跳转">
               <el-input v-model="to" />
             </el-form-item>
          
         <el-button type="success" @click="Add()">添加</el-button>
         </el-form>
     
     </el-drawer>
 </template>
 <script setup lang="ts">    
 import {ref} from 'vue'
 import { Load } from '/src/style.js'
 import {AddMenu_second_son} from '../../../service/Menu'
 
 const form = ref()
 const to = ref()
 const name = ref()
 const props = defineProps({
     data: Object,
   })
 const table = props

 const Add = () =>{
    const data = {to:to.value,name:name.value,menu_guid:props.data.menu_guid}
    AddMenu_second_son(data)
}
 </script>
 <style></style>